##
## phylo.h for my_script in /home/emax/Development/my_script
## 
## Made by maxime demouchy
## Login   <demouc_m@epitech.net>
## 
## Started on  Mon Feb 28 13:41:34 2012 maxime demouchy
##

CC = g++

RM = rm -rf

CFLAGS += -W -Wall -Wextra -g -I ./includes/

LDFLAGS += -lncurses

NAME =			moulinorme

SOURCES =		Core.cpp			\
			ContentFile.cpp			\
			ScrollText.cpp			\
			ScrollTextWarning.cpp		\
			AColor.cpp			\
			ObjectContain.cpp		\
			EventManager.cpp		\
			WindowExplorer.cpp		\
			WindowWarning.cpp		\
			SubWinWarning.cpp		\
			SubWinLines.cpp			\
			SubWinCode.cpp			\
			WindowCode.cpp			\
			ParseCsvWarning.cpp		\
			main.cpp			\

OBJECTS =  $(SOURCES:.cpp=.o)

all:	$(NAME)

$(NAME):	$(OBJECTS) 
		$(CC) $(CFLAGS) $(OBJECTS) -o $(NAME) $(LDFLAGS)
		cp moulinorme ../

clean:
	$(RM) $(OBJECTS)

fclean: clean
	$(RM) $(NAME)

re:     clean fclean all

.cpp.o:
	$(CC) -o $@ $(CFLAGS) $(LDFLAGS) -c $< -g -W -Wall
